package Baitap02;

public class Student_info_entity {

	String fullname,mobile,address,email	;
	int rollno;
	boolean sex;
	double mark;
	
	public String[] PrintStudentInfo(Student_info_entity InfoEntity){		
		return new String[]{InfoEntity.getFullname(),
				InfoEntity.getAddress(),
				InfoEntity.getMobile(),
				};
	}
	
	public boolean CompareTo(Student_info_entity sexEntity){
		
		return sexEntity.isSex();
	}
	
	public double CheckMarks(Student_info_entity markEntity){
		if (markEntity.getMark()>=9)
		{
			System.out.println("Dat Loai Gioi");
		}
		
		else if (markEntity.getMark()<9 && markEntity.getMark()>=7.5)
		{
			System.out.println("Dat Loat Kha");
		}
		
		else if (markEntity.getMark()<=7 && markEntity.getMark()>=5)
		{
			System.out.println("Dat Loai Trung Binh");
		}
		else {
			System.out.println("Dat Loai Yeu");
		}
		return markEntity.getMark();
	}
	
	public int student_rollno(Student_info_entity rollEntity){
		return rollEntity.getRollno();
	}
	
	
	
	public String getEmail() {
		return email;
	}


	public void setEmail(String email) {
		this.email = email;
	}


	public int getRollno() {
		return rollno;
	}


	public void setRollno(int rollno) {
		this.rollno = rollno;
	}


	public boolean isSex() {
		return sex;
	}


	public void setSex(boolean sex) {
		this.sex = sex;
	}


	public String getFullname() {
		return fullname;
	}

	public void setFullname(String fullname) {
		this.fullname = fullname;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}


	public double getMark() {
		return mark;
	}


	public void setMark(double mark) {
		this.mark = mark;
	}
	
	

}
